<?php $rows = $data['rows']; ?>
<?php _view("header"); ?>

<section class='body'>

<?php _view("nav"); ?>

<div class='content'>
	<div class='c'>
	<?php if(is_array($rows) && count($rows) > 0) { ?>
		<h3>These clients have load the config of group <em><?=$data['group'];?></em>: 
		<a href='/?module=client&group=<?=$data['group']?>&action=refresh'>Refresh All</a>
		</h3>
		<table class='list'>
			<thead>
				<th>Group</th>
				<th>Refresh</th>
				<th>Host</th>
				<th>Update Time</th>
			</thead>
			<tbody>
		<?php foreach($rows as $r) { ?>
			<tr>
				<td><?=$r['group_name'];?></td>
				<td><a href='/?module=client&group=<?=$data['group'];?>&action=refresh&host=<?=$r['host'];?>'>Refresh</a></td>
				<td><?=$r['host'];?></td>
				<td><?=$r['update_time'];?></td>
			</tr>
		<?php } ?>
			</tbody>
		</table>
	<?php } else { ?>
		<p>There isn't any clients have load the config of group '<em><?=$data['group'];?></em>'</p>
	<?php } ?>
	</div>
</div>

<div class='float-clear'></div>
</section>

<?php _view("footer"); ?>
